{% load tags %}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<base target="_self" />
	<title>管理中心 - Power by SupDo</title>
	<link rel="stylesheet" href="/static/default/css/admin.css" type="text/css" />
	<script src="/static/{{site.theme}}/js/jquery.min.js" type="text/javascript"></script>
<style>
</style>
</head>
<body>
<div id="loading">Loading...</div>
<table id="maintable" cellpadding="0" cellspacing="0" width="100%" height="100%">
	<tr id="toptr">
		<td height="80px"><div id="logo"><img src="/static/{{site.theme}}/images/admin-logo-en.png" /></div></td>
		<td>
			<div id="nav">
				<ul id="topmenu">
					<li id="topmenulist">
						<a id="tm-index" class="currentmenu" href="javascript:loadtree('index');"><span>首页</span></a>
						<a id="tm-global" href="javascript:loadtree('global');"><span>全局</span></a>
						<a id="tm-param" href="javascript:loadtree('param');"><span>参数</span></a>
						<a id="tm-user" href="javascript:loadtree('user');"><span>用户</span></a>
						<a id="tm-content" href="javascript:loadtree('content');"><span>内容</span></a>
					</li>
					<li id="userinfo">你好  <b>{{site.power.user.username}}</b>  [<a href="/cancel!User.do">退出</a>] <a href="/" target="_blank">站点首页</a></li>
				</ul>
				<ul id="currentloc"><li>当前位置：<span id="locspan">首页</span></li></ul>
			</div>
			<div></div>
		</td>
	</tr>
	<tr>
		<td id="menuleft" valign="top">{% include site.theme|stringformat:"s/admin/include/leftMenu.html" %}</td>
		<td id="mainright" valign="top" ><iframe src="" id="mainiframe" name="mainiframe" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe></td>
	</tr>
</table>
<script type="text/javascript">
function loadtree(tmenu){
	$('#topmenulist > a').removeClass('currentmenu');
	$('#topmenulist > #tm-' + tmenu).addClass('currentmenu');
	$('#locspan').text($('#topmenulist > #tm-' + tmenu).text());
	$('.leftmenulist').hide();
	$('#menu-' + tmenu).show();
	$('#mainiframe').attr('src',$('#menu-'+tmenu+' li:first-child a').attr('href'));
	//document.frames('mainiframe').location.reload();
}
$().ready(function(){loadtree('index');});
</script>
</body>
</html>